package com.developer.platform.application.query.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;

/**
 * @author ：qiaoliang
 * @date ：2020-10-21
 */
@ApiModel("登录用户基础信息返回模型")
public class CurrUserDto {
    @ApiModelProperty(value = "ID")
    private long id;
    @ApiModelProperty(value = "昵称")
    private String name;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "可访问资源")
    private List<RouteDto> menus;

    public CurrUserDto(long id, String name, String avatar) {
        this.id = id;
        this.name = name;
        this.avatar = avatar;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<RouteDto> getMenus() {
        return menus;
    }

    public void setMenus(List<RouteDto> menus) {
        this.menus = menus;
    }
}
